/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.Comparator;
/*     */ import java.util.List;
/*     */ import java.util.regex.Matcher;
/*     */ import java.util.regex.Pattern;
/*     */ 
/*     */ public class yj {
/*  10 */   private static char j = Character.MAX_VALUE;
/*     */   private static Comparator<eos/moe/dragoncore/bi> c;
/*     */   public Pattern r;
/*     */   public Pattern f;
/*     */   public Pattern s;
/*     */   public Pattern m;
/*     */   public Pattern l;
/*     */   public String t;
/*     */   public List<eos/moe/dragoncore/bi> d;
/*     */   public List<eos/moe/dragoncore/hi> z;
/*     */   public int i;
/*     */   public int w;
/*     */   public int q;
/*     */   public int g;
/*     */   
/*     */   public yj(String str) {
/*  26 */     this.r = Pattern.compile("([\"'])(?:(?=(\\\\?))\\2.)*?\\1", 8);
/*  27 */     this.s = Pattern.compile("[\\p{L}-]+|\\n|$");
/*  28 */     this.m = Pattern.compile("\\b-?(?:0[xX][\\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|\\d*\\.?\\d+(?:[Ee][+-]?\\d+)?(?:[fFbBdDlLsS])?|NaN|Infinity|true|false)\\b");
/*  29 */     this.l = Pattern.compile("\\/\\*[\\s\\S]*?(?:\\*\\/|$)|\\/\\/.*|#.*");
/*  30 */     this.d = new ArrayList<>();
/*  31 */     this.z = new ArrayList<>();
/*  32 */     this.q = 1;
/*  33 */     (this.t = str).replaceAll("\\r?\\n|\\r", "\n");
/*  34 */     double d = 1.0D;
/*     */   }
/*     */   
/*     */   public int v(double d) {
/*  38 */     return (int)(this.i * d);
/*     */   }
/*     */ 
/*     */   
/*     */   public void v(String str, double d1, double d2) {
/*  43 */     this.i = 10;
/*     */     
/*  45 */     String[] arrayOfString = this.t.split("\n");
/*  46 */     int i = 0;
/*  47 */     for (String str1 : arrayOfString) {
/*  48 */       StringBuilder stringBuilder = new StringBuilder();
/*  49 */       Matcher matcher = this.s.matcher(str1);
/*  50 */       int j = 0;
/*  51 */       while (matcher.find()) {
/*  52 */         String str2 = str1.substring(j, matcher.start());
/*  53 */         if (af.v(stringBuilder + str2, str, false) > d1 - 10.0D) {
/*  54 */           this.z.add(new eos/moe/dragoncore/hi(this, stringBuilder.toString(), i, i + stringBuilder.length()));
/*  55 */           i += stringBuilder.length();
/*  56 */           stringBuilder = new StringBuilder();
/*     */         } 
/*  58 */         stringBuilder.append(str2);
/*  59 */         j = matcher.start();
/*     */       } 
/*  61 */       this.z.add(new eos/moe/dragoncore/hi(this, stringBuilder.toString(), i, i + stringBuilder.length() + 1));
/*  62 */       i += stringBuilder.length() + 1;
/*     */     } 
/*  64 */     this.g = this.z.size();
/*  65 */     this.w = this.g * this.i;
/*  66 */     this.q = (int)Math.max(d2 / this.i, 1.0D);
/*     */   }
/*     */   
/*     */   public void v() {
/*  70 */     eos/moe/dragoncore/bi eos/moe/dragoncore/bi = null;
/*  71 */     for (int i = 0; (eos/moe/dragoncore/bi = v(i)) != null; i = eos/moe/dragoncore/bi.i) {
/*  72 */       this.d.add(eos/moe/dragoncore/bi);
/*     */     }
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean v(eos/moe/dragoncore/bi eos/moe/dragoncore/bi1, eos/moe/dragoncore/bi eos/moe/dragoncore/bi2) {
/* 114 */     return (eos/moe/dragoncore/bi1 == null || eos/moe/dragoncore/bi1.z > eos/moe/dragoncore/bi2.z);
/*     */   }
/*     */   
/*     */   public void v(int i, int j, char c, int k) {
/* 118 */     if (!v(i, j, k)) {
/*     */       return;
/*     */     }
/* 121 */     this.d.add(new eos/moe/dragoncore/bi(this, i, j, c, k));
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public String v() {
/* 139 */     StringBuilder stringBuilder = new StringBuilder(this.t);
/* 140 */     for (eos/moe/dragoncore/bi eos/moe/dragoncore/bi : this.d) {
/* 141 */       stringBuilder.insert(eos/moe/dragoncore/bi.z, Character.toString('￿') + eos/moe/dragoncore/bi.q);
/* 142 */       stringBuilder.insert(eos/moe/dragoncore/bi.i, Character.toString('￿') + 'r');
/*     */     } 
/* 144 */     return stringBuilder.toString();
/*     */   }
/*     */   
/*     */   static {
/* 148 */     c = ((a, eos/moe/dragoncore/bi1) -> (a.z > eos/moe/dragoncore/bi1.z) ? 1 : ((a.z < eos/moe/dragoncore/bi1.z) ? -1 : 0));
/*     */   }
/*     */ 
/*     */ 
/*     */   
/*     */   public class eos/moe/dragoncore/hi
/*     */   {
/*     */     public String i;
/*     */ 
/*     */     
/*     */     public int w;
/*     */ 
/*     */     
/*     */     public int q;
/*     */ 
/*     */     
/*     */     public eos/moe/dragoncore/hi(yj yj1, String str, int i, int j) {
/* 165 */       this.i = str;
/* 166 */       this.w = i;
/* 167 */       this.q = j;
/*     */     }
/*     */     
/*     */     public String v() {
/* 171 */       StringBuilder stringBuilder = new StringBuilder(this.i);
/* 172 */       int i = 0;
/* 173 */       for (yj.eos/moe/dragoncore/bi eos/moe/dragoncore/bi : this.g.d) {
/* 174 */         if (eos/moe/dragoncore/bi.z >= this.w && eos/moe/dragoncore/bi.z < this.q) {
/* 175 */           stringBuilder.insert(eos/moe/dragoncore/bi.z - this.w + i * 2, Character.toString('￿') + eos/moe/dragoncore/bi.q);
/* 176 */           i++;
/*     */         } 
/* 178 */         if (eos/moe/dragoncore/bi.z < this.w && eos/moe/dragoncore/bi.i > this.w) {
/* 179 */           stringBuilder.insert(0, Character.toString('￿') + eos/moe/dragoncore/bi.q);
/* 180 */           i++;
/*     */         } 
/* 182 */         if (eos/moe/dragoncore/bi.i >= this.w && eos/moe/dragoncore/bi.i < this.q) {
/* 183 */           stringBuilder.insert(eos/moe/dragoncore/bi.i - this.w + i * 2, Character.toString('￿') + 'r');
/* 184 */           i++;
/*     */         } 
/*     */       } 
/* 187 */       return stringBuilder.toString();
/*     */     }
/*     */   }
/*     */   
/*     */   class eos/moe/dragoncore/bi {
/*     */     public int z;
/*     */     public int i;
/*     */     public int w;
/*     */     public char q;
/*     */     
/*     */     public eos/moe/dragoncore/bi(yj yj1, int i, int j, char c, int k) {
/* 198 */       this.z = i;
/* 199 */       this.i = j;
/* 200 */       this.q = c;
/* 201 */       this.w = k;
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\yj.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */